package com.anntly.netty.inboundAndOutbound;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Auther: 张文
 * @Date: 2020/6/14 15:08
 * @Description:
 */
public class MyServerHandler extends SimpleChannelInboundHandler<Long> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, Long aLong) throws Exception {
        System.out.println("从客户端接收到消息---"+channelHandlerContext.channel().remoteAddress()+":"+aLong);
    }
}
